import os
import shutil
base_dir = 'E:\\CarData\\templates\\'
file_name = 'page_template.xml'
dirlist = os.listdir(base_dir)
for dd in dirlist:
    if not os.path.exists(base_dir + dd + '\\' + file_name):
        shutil.copy("C:\\" + file_name, base_dir + dd)
        print ('Copy template file to %s Done!')%(base_dir + dd)
        
